<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="../templates/ui.xhtml">

    <ui:define name="head">

        <style type="text/css">
            .bookmark {
                background-image: url(../images/bookmark.png) !important;
            }
        </style>
    </ui:define>

    <ui:define name="content">


        <h1 class="title ui-widget-header ui-corner-all">Button</h1>
        <div class="entry">
            <p>Button is an extension to the standard h:button component featuring advanced skinning capabilities. Just like
            h:button, button does GET requests targeting bookmarkable URLs.</p>

            <p:button outcome="productDetail" value="Bookmark" image="bookmark" style="margin-right:20px;">
                <f:param name="productId" value="10" />
            </p:button>

            <p:button outcome="productDetail" value="With Icon" image="bookmark" style="margin-right:20px;">
                <f:param name="productId" value="20" />
            </p:button>

            <p:button outcome="productDetail" image="bookmark" style="margin-right:20px;" title="Icon Only">
                <f:param name="productId" value="30" />
            </p:button>

            <p:button outcome="productDetail" value="Bookmark" image="bookmark" disabled="true" style="margin-right:20px;">
                <f:param name="productId" value="40" />
            </p:button>

            <h3>Source</h3>
            <p:tabView>
                <p:tab title="button.xhtml">
                    <pre name="code" class="xml">
&lt;p:button outcome="productDetail" value="Bookmark" image="bookmark"&gt;
    &lt;f:param name="productId" value="10" /&gt;
&lt;/p:button&gt;

&lt;p:button outcome="productDetail" value="With Icon" image="bookmark"&gt;
    &lt;f:param name="productId" value="20" /&gt;
&lt;/p:button&gt;

&lt;p:button outcome="productDetail" image="bookmark"&gt;
    &lt;f:param name="productId" value="30" /&gt;
&lt;/p:button&gt;

&lt;p:button outcome="productDetail" value="Bookmark" image="bookmark" disabled="true" title="iconOnly"&gt;
    &lt;f:param name="productId" value="40" /&gt;
&lt;/p:button&gt;
                    </pre>
                </p:tab>

            </p:tabView>

        </div>

    </ui:define>
</ui:composition>